﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Drawing;
using Mang24k99.Business.COMM;
using Mang24k99.Model.COMM;

namespace Mang24k99.Web.OrgList
{  
    public partial class ShowPicture : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //通过QueryString传picture 的ID的方法浏览图片
            string PicId = Request.QueryString["PicId"].ToString();
            MKtCommOrglist orglist = BKtCommOrglist.Find(Int32.Parse(PicId));
            if (orglist.LOGO != null)
            {
                int cout = orglist.LOGO.Length;
                Response.ContentType = "image/pjepg";
                Response.OutputStream.Write(orglist.LOGO, 0, cout);
                Response.End();
            }
        }
    }
}
